// The Swift Programming Language
// https://docs.swift.org/swift-book

import Foundation

public struct DJR<T> {
    public var base: T
    public init(_ base: T) {
        self.base = base
    }
}

public protocol DJRCompatible {}

public extension DJRCompatible { var djr: DJR<Self> {DJR(self)} }

public let kJRKitManager = JRKitManager()

public func JRLog<N>(_ message: N, fileName: String = #file, methodName: String = #function, lineNumber: Int = #line) {
    if kJRKitManager.showLog {
        print("位置: \(fileName as NSString)\n方法: \(methodName)\n行号: \(lineNumber)\n时间: \(Date.currentTime())\n打印信息: \(message)\n")
    }
}
